package br.ufmg.dees.insane.ui.rich.full;

import java.io.Serializable;

import javax.swing.JInternalFrame;

import br.ufmg.dees.insane.commons.view.DrawingArea;
import br.ufmg.dees.insane.commons.view.IView;

public class InsaneView extends IView implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private InsaneInternalInterface parent;
	
	public InsaneView(InsaneInternalInterface parent){
		this.parent = parent;
		super.setViewState(new InsaneViewState());
		super.setDrawingArea(new DrawingArea((IView)this));
	}
	
	public JInternalFrame getInterface() {
		return this.parent;
	}

	public void setInterface(JInternalFrame par) {
		this.parent = (InsaneInternalInterface)par;

	}

	public void setCoord(String x, String y) {
		this.parent.setCoord(x, y);

	}

	public void setMessage(String m) {
		this.parent.setMessage(m);

	}

}
